home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
snpd9611.zip
/
ANSISYS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-11-24
|
738b
|
35 lines
// +++Date last modified: 23-Nov-1996
// Class to display ANSI (msdos ANSI.SYS) files
// public domain
// by David Nugent <davidn@unique.blaze.net.au>
// 3:632/348@fidonet
#if !defined(_ansisys_h)
#define _ansisys_h
#include "scrintrp.hpp"
class ansisys : public scrinterp
{
typedef void (ansisys::*pdisp)(int ch);
public:
ansisys(video & v);
virtual void putch(int ch);
virtual void reset();
private:
pdisp dispfunc; // Display function (state)
void esc(int ch); // ESC function handler
void seq(int ch); // Parser for ESC sequences
cell_t savx, // Saved position
savy;
int evalargs(cell_t * plist);
};
#endif